#include <cassert>
#include "MlpNetwork.h"

namespace fullsail_ai {

	void MlpNetwork::computeHiddenErrors(std::vector<double> const& hiddenValues,
	                                     std::vector<double> const& outputErrors,
	                                     std::vector<double>& hiddenErrors) const
	{
		assert(
		    (outputErrors.size() == outputLayer.getNeurons().size())
		 && "Your code is violating the precondition of this method!"
		);
		outputLayer.computeHiddenErrors(hiddenValues, outputErrors, hiddenErrors);
	}
}  // namespace fullsail_ai

